﻿@{
    ViewBag.Title = "GetReport";
}
<script>
    function AddBadWordsFilter() {
        $("#errorMessage").html("");
        var BadWords = $("#BadWordsFilter").val();
        var Lang = $("#comboboxLanguage22").val();
        if (BadWords.length < 1) {
            $("#errorMessage").html("Can't be less than 1 characters.");
            return;
        }
    $("#reportingDiv").hide();
    $("#loadingIndicatorReportSong").show();
    $.ajax(
        {
            type: "POST",
            url: "/Report/InsertBadWord",
            data: { BadWord: BadWords, lang: Lang },
            success: function (result) {
                if (result.Result) {
                    $("#loadingIndicatorReportSong").hide();
                    $.msgbox(result.Message, { type: "info" });
                }
                else {
                    $.msgbox(result.Message, { type: "error" });
                }
            }
        });
}
</script>

@*phần song *@
<div style="padding:10px; margin-bottom:30px;">
    <a style="float:left;font-size: 15px" href="@Url.Action("GetReportAll", "Report", new{type="1", number =1, pagenumber=10})">
    <div style="padding-left:40px;">
        <img src="@Url.Content("~/Content/Images/song.png")" width="20" height="20"/>
        <span class="titleNewFont" style="font-size: 20px; font-weight: normal">Song Reports</span>
        <hr />
    </div>
    </a>
    <div>
        @{Html.RenderAction("LoadSongReport", "Report", new { type = "1", number = 1, pagenumber = 10 });}
    </div>
</div>

@*phần lyric *@
<div style="padding:10px; margin-bottom:30px;">
    <a style="float:left;font-size: 15px" href="@Url.Action("GetReportAll", "Report", new{type="2", number =1, pagenumber=10})">
    <div style="padding-left:40px;">
        <img src="@Url.Content("~/Content/Images/lyric.png")" width="20" height="20"/>
        <span class="titleNewFont" style="font-size: 20px; font-weight: normal">Lyric Reports</span>
        <hr />
    </div>
    </a>
    <div>
        @{Html.RenderAction("LoadLyricReport", "Report", new { type = "2", number = 1, pagenumber = 10 });}
    </div>
</div>
@*phần Comment *@
<div style="padding:10px; margin-bottom:30px;">
    <a style="float:left;font-size: 15px" href="@Url.Action("GetReportAll", "Report", new{type="3", number =1, pagenumber=10})">
    <div style="padding-left:40px;">
        <img src="@Url.Content("~/Content/Images/writecomment.png")" width="20" height="20"/>
        <span class="titleNewFont" style="font-size: 20px; font-weight: normal">Comment Reports</span>
        <hr />
    </div>
    </a>
    <div>
        @{Html.RenderAction("LoadCommentReport", "Report", new { type = "3", number = 1, pagenumber = 10 });}
    </div>
</div>

@*phần thêm Bad Words Filte *@

<div id="tooltipSectionFunction">
    <div align="right" style="margin-bottom: 5px;"><b title="Hide" style="cursor: pointer">Add</b></div>
    <div id="tooltipSectionContent" align="center">

        <div class="icon">
            <div class="description">
                <div class="positionTheTooltip">
                    <div class="contentSectionInside" style="width: 350px;">
                        <strong>Add Bad Words Filter</strong>
                    </div>
                    <div class="contentSectionInside" align="left" style="width: 350px;">
                         <span id="comboboxLanguage1">
                             <select id="comboboxLanguage22">
                                 <option value="1">English</option>
                                 <option value="2">Vietnamese</option>
                                 <option value="3">Korea</option>
                                 <option value="4">Indonesia</option>
                                 <option value="5">Chinese</option>
                             </select>
                         </span>
                        <br /><span id="errorMessage"></span>
                        <div>Bad Words Filterent:</div>
                        <input id="BadWordsFilter" type="text" style="width: 320px;" />
                        <div align="right"><a class="linkText" onclick="AddBadWordsFilter()">Add</a></div>
                    </div>
                </div>
            </div>

            <div class="iconShortcut">
                <img style="display:none;margin-top:20px;" id="loadingIndicatorReportSong" src="@Url.Content("~/Content/Images/loader.gif")" />
                <img title="Report this song" src="@Url.Content("~/Content/Images/document-broken.png")" /><br />
                Add Bad Words Filter
            </div>
        </div>
    </div>
</div>

